<%--
  Created by IntelliJ IDEA.
  User: Ray
  Date: 2019/9/13
  Time: 11:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加</title>
    <link rel="stylesheet" href="${path}/plugins/bootstrap/css/bootstrap.css" type="text/css">
</head>
<body>
<%@include file="../common/header.jsp"%>
<form class='form-horizontal' role='form' action='${path}/phone/insert' method='post'>
    <div class='form-group'>
        <label for='name' class='col-sm-5 control-label'>手机名</label>
        <div class='col-sm-2'>
            <input name='name' type='text' class='form-control' id='name' placeholder='请输入名称'>
        </div>
    </div>
    <div class='form-group'>
        <label for='price' class='col-sm-5 control-label'>价格</label>
        <div class='col-sm-2'>
            <input name='price' type='text' class='form-control' id='price' placeholder='请输入价格'>
        </div>
    </div>
    <div class='form-group'>
        <label for='price' class='col-sm-5 control-label'>是否包邮</label>
        <div class='col-sm-2'>
            <select  name='free' id='free' class='form-control'>
                <option value='-1'>==请选择==</option>
                <option value='0'>是</option>
                <option value='1'>否</option>
            </select>
        </div>
    </div>
    <div class='form-group'>
        <label for='price' class='col-sm-5 control-label'>手机说明</label>
        <div class='col-sm-2'>
            <textarea name='intro' id='intro' class='form-control' rows='3'></textarea>
        </div>
    </div>
    <div class='form-group'>
        <label for='price' class='col-sm-5 control-label'>手机类型</label>
        <div class='col-sm-2'>
            <select name='type_id' id='type_id' class='form-control'>
                <option value='-1'>==请选择==</option>
                <c:forEach items="${requestScope.phoneTypeList}" var="pt">
                    <option name='type_id' value='${pt.id}'>${pt.typeName}</option>
                </c:forEach>
            </select>
        </div>
    </div>
    <div class='form-group'>
        <label for='url' class='col-sm-5 control-label'>图片地址</label>
        <div class='col-sm-2'>
            <input name='url' id='url' type='text' class='form-control' id='url' placeholder='请输入地址'>
        </div>
    </div>
    </div>
    </div>
    <div class='form-group'>
        <div class='col-sm-offset-5 col-sm-5'>
            <button type='submit' class='btn btn-default'>添加</button>
        </div>
    </div>
</form>
<script src="${path}/plugins/bootstrap/jquery/jquery.min.js"></script>
<script src="${path}/plugins/bootstrap/js/bootstrap.js"></script>
</body>
</html>
